package com.vincent.dao;

import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by vincent on 15-1-6.
 */
@Repository("shiroDao")
public class ShiroDao {
    @Resource
    private RoleMapper roleMapper;
    @Resource
    private PermissionMapper permissionMapper;

    public List<String> selectRoleNamesByAdminId(Integer adminId){
        return roleMapper.selectRoleNamesByAdminId(adminId);
    }

    public List<String> selectPerNamesByAdminId(Integer adminId){
        return permissionMapper.selectPerNamesByAdminid(adminId);
    }
}
